package o;

import android.util.Log;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public abstract class aps extends ape {
    private int ॱ;

    protected aps(byte[] bArr) {
        apa.ˊ(bArr.length == 25);
        this.ॱ = Arrays.hashCode(bArr);
    }

    abstract byte[] ˎ();

    public int hashCode() {
        return this.ॱ;
    }

    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof apd)) {
            return false;
        }
        try {
            apd o_apd = (apd) obj;
            if (o_apd.ˋ() != hashCode()) {
                return false;
            }
            aqg ˏ = o_apd.ˏ();
            if (ˏ == null) {
                return false;
            }
            return Arrays.equals(ˎ(), (byte[]) aqd.ˋ(ˏ));
        } catch (Throwable e) {
            Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e);
            return false;
        }
    }

    public final aqg ˏ() {
        return aqd.ˋ(ˎ());
    }

    public final int ˋ() {
        return hashCode();
    }

    protected static byte[] ˋ(String str) {
        try {
            return str.getBytes("ISO-8859-1");
        } catch (UnsupportedEncodingException e) {
            throw new AssertionError(e);
        }
    }
}
